<!-- INCLUDE ucp_header.html -->
<script type="text/javascript">
// <![CDATA[
	<!-- IF S_YUBIKEY_LOGIN_ENABLED -->
	function handle_enter(event)
	{
		var evt = event || window.event;
		var code = evt.which || evt.keyCode || evt.charCode;
		if (13 == code)
		{
			if(evt.which)
			{
				evt.preventDefault();
			}
			else if (evt.keyCode)
			{
				evt.keyCode = 9;
			}
			else
			{
				evt.charCode = 9;
			}
			document.getElementById('submit').click();
		}
	}
	<!-- ENDIF -->
// ]]>
</script>

<table class="tablebg" width="100%" cellspacing="1">
<tr>
	<th colspan="2" valign="middle">{L_TITLE}</th>
</tr>
<!-- BEGIN yubikey_error_message -->
<tr>
	<td class="row3" colspan="2" align="center"><span class="error">{yubikey_error_message.MESSAGE}</span></td>
</tr>
<!-- END yubikey_error_message -->
<!-- BEGIN yubikey_message -->
<tr>
	<td class="row3" colspan="2" align="center"><span class="gensmall">{yubikey_message.MESSAGE}</span></td>
</tr>
<!-- END yubikey_message -->

<!-- IF S_YUBIKEYS_EXIST -->
<tr>
	<td class="row1" colspan="2" width="100%">
		<table cellspacing="1" width="100%">
		<thead>
			<tr>
				<th>{L_YUBIKEY_DEVICE_ID}</th>
				<th>{L_YUBIKEY_STATUS}</th>
				<th colspan="2">{L_OPTIONS}</th>
			</tr>
		</thead>
		<tbody>
		<!-- BEGIN yubikey -->
			<!-- IF yubikey.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
				<td style="width: 50%;">{yubikey.DEVICE_ID}</td>
				<td style="width: 15%; white-space: nowrap;" align="center">&nbsp;{yubikey.STATUS}&nbsp;</td>
				<td style="text-align: center;">&nbsp;<a href="{yubikey.U_ACTIVATE_DEACTIVATE}">{yubikey.L_ACTIVATE_DEACTIVATE}</a>&nbsp;</td>
				<td style="text-align: center;">&nbsp;<a href="{yubikey.U_DELETE}">{L_YUBIKEY_DELETE}</a>&nbsp;</td>
			</tr>
		<!-- END yubikey -->
		</tbody>
		</table>
	</td>
</tr>
<!-- ENDIF -->

<!-- IF S_YUBIKEY_LOGIN_ENABLED -->
<tr>
	<th colspan="2">{L_YUBIKEY_ADD_A}</th>
</tr>
<tr>
	<td class="row1" width="50%"><b class="genmed">{L_YUBIKEY_OTP}</b><br /><span class="gensmall">{L_YUBIKEY_OTP_FULL_EXPLAIN}</span></td>
	<td class="row2"><form method="post" action="{U_RESET}"><input type="text" name="yubikey_otp" id="yubikey_otp" size="44" maxlength="44" value="" class="yubikey-otp post" onkeypress="javascript:handle_enter(event);" />&nbsp;<input class="btnmain" type="submit" id="submit" name="submit" value="{L_YUBIKEY_ADD}" />{S_FORM_TOKEN}</form></td>
</tr>
<!-- ELSE -->
<tr>
	<td class="row1" width="100%"><b class="genmed">{L_YUBIKEY_LOGIN_DISABLED}</b></td>
<tr>
<!-- ENDIF -->
</table>

<!-- INCLUDE ucp_footer.html -->